Skip to content

[SPARK-58934][BUILD] Tolerate apt-get remove failures directly - #58206

Closed
nchammas wants to merge 2 commits into
apache:masterfrom
nchammas:free-disk-space-cleanup
Closed

[SPARK-58934][BUILD] Tolerate apt-get remove failures directly#58206
nchammas wants to merge 2 commits into
apache:masterfrom
nchammas:free-disk-space-cleanup

Conversation

@nchammas

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Tolerate failures from apt-get remove directly. Refactor the list of packages to remove into an array. Remove the call to apt-get update.

Why are the changes needed?

#53226 added the call to update specifically to fix intermittent failures when calling remove.

That update, however, had its own issues and hit up against actions/runner-images#14594. This in turn triggered the addition of a timeout to the cleanup in #58121.

If we tolerate remove failures directly, we don't need the update anymore. I don't think we need the timeout either, but I've left that alone.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

CI on this PR.

Was this patch authored or co-authored using generative AI tooling?

I wrote this with assistance from GitHub Copilot.

@uros-b

uros-b commented Aug 21, 2026

Copy link
Copy Markdown
Member

Thank you @nchammas!

@nchammas nchammas closed this in 6f89924 Aug 25, 2026
nchammas added a commit that referenced this pull request Aug 25, 2026
### What changes were proposed in this pull request?

Tolerate failures from `apt-get` remove directly. Refactor the list of packages to remove into an array. Remove the call to `apt-get update`.

### Why are the changes needed?

#53226 added the call to `update` specifically to fix intermittent failures when calling `remove`.

That `update`, however, had its own issues and hit up against actions/runner-images#14594. This in turn triggered the addition of a timeout to the cleanup in #58121.

If we tolerate `remove` failures directly, we don't need the `update` anymore. I don't think we need the timeout either, but I've left that alone.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

CI on this PR.

### Was this patch authored or co-authored using generative AI tooling?

I wrote this with assistance from GitHub Copilot.

Closes #58206 from nchammas/free-disk-space-cleanup.

Authored-by: Nicholas Chammas <nicholas.chammas@gmail.com>
Signed-off-by: Nicholas Chammas <nicholas.chammas@gmail.com>
(cherry picked from commit 6f89924)
Signed-off-by: Nicholas Chammas <nicholas.chammas@gmail.com>
@nchammas

Copy link
Copy Markdown
Contributor Author

Merge Summary:

Posted by merge_spark_pr.py

@nchammas
nchammas deleted the free-disk-space-cleanup branch August 25, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants